//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04B
TN_Widget.CreateTable([['The Lemon Twigs','The Southern Cafe & Music Hall','Charlottesville, VA','Sunday','5/5/2024','8:00 PM','6319991','The-Lemon-Twigs-5-5-2024'],['AJJ','The Southern Cafe & Music Hall','Charlottesville, VA','Monday','5/6/2024','8:00 PM','6280963','AJJ-5-6-2024'],['Dar Williams','The Southern Cafe & Music Hall','Charlottesville, VA','Thursday','5/9/2024','8:00 PM','6258731','Dar-Williams-5-9-2024'],['408','The Southern Cafe & Music Hall','Charlottesville, VA','Saturday','5/11/2024','7:30 PM','6319880','408-5-11-2024'],['HIghway to Rock Youth Showcase','The Southern Cafe & Music Hall','Charlottesville, VA','Sunday','5/12/2024','12:30 PM','6396569','HIghway-to-Rock-Youth-Showcase-5-12-2024'],['Magnolia Park','The Southern Cafe & Music Hall','Charlottesville, VA','Wednesday','5/15/2024','7:00 PM','6306624','Magnolia-Park-5-15-2024'],['Songwriter Showcase: Theocles Herrin','The Southern Cafe & Music Hall','Charlottesville, VA','Sunday','5/19/2024','6:00 PM','6399688','Songwriter-Showcase--Theocles-Herrin-5-19-2024'],['The Gladstones & Kingdom Of Mustang','The Southern Cafe & Music Hall','Charlottesville, VA','Friday','5/24/2024','8:00 PM','6371445','The-Gladstones---Kingdom-Of-Mustang-5-24-2024'],['Yasmin Williams','The Southern Cafe & Music Hall','Charlottesville, VA','Friday','5/31/2024','8:00 PM','6301131','Yasmin-Williams-5-31-2024'],['Melissa Ferrick','The Southern Cafe & Music Hall','Charlottesville, VA','Thursday','6/13/2024','8:00 PM','6285498','Melissa-Ferrick-6-13-2024'],['Fantastic Cat','The Southern Cafe & Music Hall','Charlottesville, VA','Friday','6/14/2024','8:00 PM','6345322','Fantastic-Cat-6-14-2024'],['South Of Heaven','The Southern Cafe & Music Hall','Charlottesville, VA','Saturday','6/15/2024','8:30 PM','6374791','South-Of-Heaven-6-15-2024'],['Way Down Wanderers','The Southern Cafe & Music Hall','Charlottesville, VA','Saturday','6/22/2024','8:00 PM','6391450','Way-Down-Wanderers-6-22-2024'],['Trousdale','The Southern Cafe & Music Hall','Charlottesville, VA','Wednesday','6/26/2024','8:00 PM','6310458','Trousdale-6-26-2024'],['The Wildmans','The Southern Cafe & Music Hall','Charlottesville, VA','Friday','7/12/2024','8:00 PM','6399544','The-Wildmans-7-12-2024'],['Tommy Prine & Kindred Valley','The Southern Cafe & Music Hall','Charlottesville, VA','Sunday','7/14/2024','7:30 PM','6408685','Tommy-Prine---Kindred-Valley-7-14-2024'],['King Buzzo & Trevor Dunn','The Southern Cafe & Music Hall','Charlottesville, VA','Monday','9/9/2024','7:30 PM','6227364','King-Buzzo---Trevor-Dunn-9-9-2024'],['Cedric Burnside','The Southern Cafe & Music Hall','Charlottesville, VA','Tuesday','9/17/2024','8:00 PM','6367087','Cedric-Burnside-9-17-2024'],['Southern Culture On the Skids','The Southern Cafe & Music Hall','Charlottesville, VA','Thursday','9/19/2024','8:00 PM','6333597','Southern-Culture-On-the-Skids-9-19-2024'],['Stop Light Observations','The Southern Cafe & Music Hall','Charlottesville, VA','Friday','9/27/2024','8:30 PM','6406782','Stop-Light-Observations-9-27-2024'],['Joslyn and The Sweet Compression','The Southern Cafe & Music Hall','Charlottesville, VA','Saturday','9/28/2024','8:00 PM','6399526','Joslyn-and-The-Sweet-Compression-9-28-2024'],['Mock Stars Ball','The Southern Cafe & Music Hall','Charlottesville, VA','Friday','10/25/2024','8:00 PM','6408025','Mock-Stars-Ball-10-25-2024'],['Mock Stars Ball','The Southern Cafe & Music Hall','Charlottesville, VA','Saturday','10/26/2024','8:00 PM','6408026','Mock-Stars-Ball-10-26-2024'],['Six Organs of Admittance','The Southern Cafe & Music Hall','Charlottesville, VA','Saturday','11/16/2024','8:00 PM','6399467','Six-Organs-of-Admittance-11-16-2024']],'The Southern Cafe and Music Hall','http://www.ticketnetwork.com/ticket/The-Southern-Cafe-and-Music-Hall-events.aspx');